package com.flashflexpro.flexdirector.conn {
import flash.events.NetStatusEvent;
import flash.net.NetConnection;

public class AMFConn extends NetConnection{
    public function AMFConn( serveltPath:String=null, adapter:String=null  ) {
        super();
        if( serveltPath == null ){
            serveltPath = "messagebroker/amf";
        }
        if( adapter == null ){
            adapter = "bc-autotest";
        }
		this.addEventListener( NetStatusEvent.NET_STATUS, onNetStatus );
        this.connect( serveltPath, adapter );
    }

    private function onNetStatus(event:NetStatusEvent):void {
    	trace( event );
//        ModelRoot.inst.net
    }

    public function AppendToGatewayUrl( jsessionId:String ):void{
    	trace( jsessionId );
    }
}
}